﻿<?php if(get_template_type() == 'index'){?>
<link rel="stylesheet" href="/shop/templates/tp1/list.css">

    <style>
        .nch-breadcrumb-layout{
            display: none;
        }
        .my_left_category{
            display: none !important;
        }
    </style>

    <table class="wrapper help" border="0">
        <tr>
            <td  class="left">
                <?php
                $class = Model('article_class')->getClassList(array());
                foreach ($class as $c) {
                ?>
                    <dl>
                        <dt>
                            <a href="javascript:;">
                                <span>
                                    <?php echo $c['ac_name']?>
                                </span>

                            </a>
                            <b >
                                <i class="icon icon-angle-down"></i>
                            </b>

                        </dt>
                        <dd>
                            <?php
                            $list = Model()->table('article')->where(array('ac_id' => $c['ac_id']))->order('article_sort')->select();
                            foreach ($list as $item) {
                            ?>
                                <a href="<?php echo urlShop('article', 'article', array('ac_id'=>$item['article_id']));?>" <?php if($_GET['ac_id'] == $item['article_id']){ echo 'class="selected"';}?>>
                                    <?php echo $item['article_title']?>
                                </a>
                            <?php
                            }
                            ?>
                        </dd>
                    </dl>
                <?php
                }
                ?>
            </td>

            <td class="right" valign="top">
                <?php
                $article = Model()->table('article')->find($_GET['ac_id']);
                ?>
                <section class="head" class="bl">
                    <span>
                    <?php echo $article['article_title'];?>

                    </span>
                </section>
                <div style="width: 100%;height:2px;background: #b6ddcb;" class="bl">
                    
                </div>
                <section class="body">
                    <article>
                        <?php
                        echo $article['article_content'];
                        ?>
                    </article>

                </section>
            </td>
        </tr>

    </table>




<?php } ?>

